﻿using System;
using SteeringBehaviors;

// Token: 0x020001E0 RID: 480
public class PursueAction : AgentAction
{
	// Token: 0x06000A40 RID: 2624 RVA: 0x0005A4EB File Offset: 0x000586EB
	public PursueAction(IKinematic target)
	{
		this.name = "Pursue";
		this.target = target;
	}

	// Token: 0x06000A41 RID: 2625 RVA: 0x0005A505 File Offset: 0x00058705
	public override void StartAction()
	{
		this.agent.movement.StartPursueBehavior(this.target);
	}

	// Token: 0x06000A42 RID: 2626 RVA: 0x00059F1A File Offset: 0x0005811A
	public override bool IsCompleted()
	{
		return this.hasStarted && !this.agent.movement.move;
	}

	// Token: 0x06000A43 RID: 2627 RVA: 0x00059F3D File Offset: 0x0005813D
	public override void Interrupt()
	{
		this.agent.movement.Stop();
	}

	// Token: 0x04000F9B RID: 3995
	private IKinematic target;
}
